home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / hexa.lha / hexa / install < prev    next >
Text File  |  1992-08-18  |  267b  |  25 lines

  1. : simple remake of the UNIX command install
  2.  
  3. s=0
  4. while test $# -gt 2
  5. do
  6.    case $1
  7.    in
  8.       -c) ;;
  9.       -s) s=1;;
  10.       -m) m=$2; shift;;
  11.    esac
  12.    shift
  13. done
  14.  
  15. set -x
  16. cp $1 $2
  17. if test -d $2
  18. then f=$2/$1
  19. else f=$2
  20. fi
  21. chmod $m $f
  22. if test $s -eq 1
  23. then strip $f
  24. fi
  25.